package com.isunny.mode.tactics.factory;

import com.isunny.mode.tactics.EvictionType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author luom
 * @date 2022/2/25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class EvictionRange {

    private EvictionType evictionType;
    private Class evictionStrategyClass;

    public boolean select(String key) {
        return evictionType.name().equals(key);
    }

}
